import request from '../utils/request'
// 获取联想菜单
const getSearchSuggListAPI = ({ keyword }) => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}
// 搜索联想菜单列表
const getSearchResultListAPI = ({ keyword, page = 1 }) => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params: {
      q: keyword,
      page
    }
  })
}
export {
  getSearchSuggListAPI,
  getSearchResultListAPI
}
